package com.jy.wms.web;


import com.jy.wms.service.SysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by Administrator on 2018/8/2.
 */
@Controller
@RequestMapping("/rule")
public class RuleRouter {
    @Autowired
    SysMenuService menuService;

    @RequestMapping("/shelfRule/{menu}")
    public String shelfRule(@PathVariable String menu, Model model){
        model.addAttribute("functions",menuService.getFunctions(menu));
        return "shelfRule/shelfRule";
    }
}
